package com.hontech.kaltaapp.device.event

import com.hontech.kaltaapp.utils.isBitSet

class SensorStatus (flag: Int) {

    val waterLevelHigh = flag.isBitSet(0)
    val waterLevelLow = flag.isBitSet(1)
    val goSwitch = flag.isBitSet(2)
    val leak1 = flag.isBitSet(3)
    val leak2 = flag.isBitSet(4)
    val bowlChecked = flag.isBitSet(5)
    val nozzleAlm = flag.isBitSet(6)
    val nozzleOrigin = flag.isBitSet(7)
    val nozzleOrigin2 = flag.isBitSet(8)
    val doorIsClose = flag.isBitSet(9)
    val doorIsLock = flag.isBitSet(10)
}


